<template>

  <view :class="'background '+$store.state.account.addAccountInvestmentAccountForm.extraClass"
        v-if="$store.state.account.addAccountInvestmentAccountForm.show">
    <view class="page-container-add-account-choose-form">
      <view class="header-section">
        <view class="back" @click="goBack">
          返回
        </view>
        <view class="header-section-title">
          添加{{title}}
        </view>
        <view class="close" @click="goBack">
          x
        </view>

      </view>
      <view class="body-section">
        <view class="add-account-choose-form">
          <view class="form-item">
            <span>名称</span>
            <input type="text" :value="title" disabled class="gray" >
          </view>
          <view class="form-item">
            <span>备注</span>
            <input type="text"  placeholder="(选填)"  v-model="comment">
          </view>
          <view class="form-item"  >
            <span>余额</span>
            <input type="number" v-model="money">
          </view>
          <view class="form-button">
            <button>
              保存
            </button>
          </view>
        </view>

      </view>

    </view>

  </view>

</template>
<script>
import SvgIcon from "@/pages/svg-icon.vue";

export default {
  components: {SvgIcon},
  data(){
    return {
      comment:'',
      money:'',
      title:'工商银行',

    }

  },
  methods:{
    goBack(){
      this.$store.dispatch("LEAVE_ADD_ACCOUNT_VIRTUAL_CARD_FORM_PAGE");

    },

  },
}
</script>
<style scoped>

.background {
  //width: 100vw;
  //height: 100vh;
  background: #fff;
  position: absolute;
  left: 0;
  bottom: 0;
  top: 0;
  right: 0;
  z-index: 1000 !important;
}
.background-animation-none{
  left:100%;
}

.background-animation-enter {

  animation-name: hd-enter;
  animation-duration: 300ms;
}

.background-animation-leave {

  animation-name: hd-leave;
  animation-duration: 300ms;
  left: 100%;
}

@keyframes hd-enter {
  0% {
    left:100%;
  }
  100% {
    left:0;
  }
}

@keyframes hd-leave {
  0% {
    left: 0;
  }
  100% {
    left: 100%;
  }
}


.page-container-add-account-choose-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: scroll;
  background: #F5F5F5;

}

.page-container-add-account-choose-form .header-section {
  background: pink;
  min-height: 50px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.page-container-add-account-choose-form .header-section .back {
  width: 40px;
  margin-left: 20px;
  position: relative;
}

.page-container-add-account-choose-form .header-section .back::before {
  content: "";
  width: 12px !important;
  height: 12px !important;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  transform: rotate(225deg);
  position: absolute;
  top: 4px;
  left: -11px;
}

.page-container-add-account-choose-form  .close {
  width: 40px;
  margin-right: 20px;
  text-align: right;
}
.body-section{
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  margin-top: 10px;

}
.add-account-choose-form .form-item{

  height: 70px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-left: 12px;
  border-bottom:1px solid #f3f3f3;
}

.add-account-choose-form .form-item span{
  font-size: 16px;

}
.add-account-choose-form .form-item  input{
  text-align: right;
  margin-right: 10px;
  font-size: 16px;
}
.add-account-choose-form .form-item .gray{
  color: #808080;
}
.form-button{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.form-button button{
  text-align: center;
  height: 40px;
  line-height: 40px;
  flex: 1;
  background: pink;
  outline: none;
  margin: 20px 20px 20px 20px;
  box-shadow: none;
}


</style>